var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_SetSpecialAction("oid=37037", "on", -1, 1);
            cm.fieldEffect_PlayFieldSound("Sound/SoundEff.img/blackHeaven/gudolOpen", 100);
            cm.onSetBackEffect("bh_1200_1", 1, 1, 0, 0);
            cm.地图特效_开关落脚点([25], [0]);
            cm.onSetBackEffect("bh_1200_2", 1, 1, 0, 0);
            cm.地图特效_开关落脚点([27], [0]);
            cm.onSetBackEffect("bh_1200_3", 1, 1, 0, 0);
            cm.地图特效_开关落脚点([26], [0]);
            cm.onSetBackEffect("bh_1200_4", 1, 1, 0, 0);
            cm.地图特效_开关落脚点([28], [0]);
            cm.dispose()
        }
    }
};